<!DOCTYPE html>
<html>
    <head>
        <title>.::Sistema de Agendamento de Videoconfer�ncias::.</title>
        <meta charset="utf-8">
        <meta name="layout" content="main" />
    </head>
    <body>
    	<div id="div_registros">
    		<g:render template="menu" />
    		<div id="div_registros_list">
    			<h2>Lista de Responsáveis</h2>
	    		<g:if test="${flash.message != null}">
	    		 	<div id="message">${flash.message}</div>
	    		</g:if>
    			<g:each in="${flash.errors}" var="erro">
					<div id="error">
						${erro.toString()}
					</div>
				</g:each>
	    		<g:each in="${responsaveis}" var="responsavel">
	    			<div id="div_responsavel">
	    				<div id="nome"><p>${responsavel.nome}</p></div>
	    				<div id="telefone"><p>${responsavel.telefone}</p></div>
	    				<div id="celular"><p>${responsavel.celular}</p></div>
	    				<div id="email"><p>${responsavel.email}</p></div>
	    				<div id="buttons">
	    					<g:link controller="responsavel" action="edit" id="${responsavel.id}">Editar</g:link>
	    					<g:link controller="responsavel" action="delete" id="${responsavel.id}">Apagar</g:link>
	    				</div>
	    			</div>
	    		</g:each>
    		</div>
    		<br class="clear" />
    	</div>
    </body>
</html>